//
//  ConsultTableViewCell.m
//  MedicineBox
//
//  Created by dllo on 15/9/30.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "ConsultTableViewCell.h"
// 自适应宽度比例
#define OffWidth [UIScreen mainScreen].bounds.size.width / 375
// 自适应高度比例
#define OffHeight [UIScreen mainScreen].bounds.size.height / 667

@implementation ConsultTableViewCell

- (void)dealloc
{
    [super dealloc];
}

- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.imageV = [[UIImageView alloc] init];
        self.label = [[UILabel alloc] init];
        _label.numberOfLines = 0;
        if ([UIScreen mainScreen].bounds.size.width == 320) {
            _label.font = [UIFont systemFontOfSize:12];
        }
        [self addSubview:_imageV];
        [self addSubview:_label];
    }
    return self;
}



- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageV.frame = CGRectMake(15 * OffWidth, 5 * OffHeight, 80 * OffWidth, 60 * OffHeight);
    self.label.frame = CGRectMake(100 * OffWidth, 10 * OffHeight, 275 * OffWidth, 50 * OffHeight);
}



@end
